home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 13 / CU Amiga Magazine's Super CD-ROM 13 (1997)(EMAP Images)(GB)(Track 1 of 2)[!][issue 1997-08].iso / CUCD / Graphics / irit70 / src / include / primitiv.h < prev    next >
C/C++ Source or Header  |  1997-02-28  |  2KB  |  58 lines

  1. /*****************************************************************************
  2. *   "Irit" - the 3d (not only polygonal) solid modeller.             *
  3. *                                         *
  4. * Written by:  Gershon Elber                Ver 0.2, Mar. 1990   *
  5. ******************************************************************************
  6. * (C) Gershon Elber, Technion, Israel Institute of Technology                *
  7. ******************************************************************************
  8. * General, visible to others, definitions of primitiv module.             *
  9. *****************************************************************************/
  10.  
  11. #ifndef    PRIMITIV_H
  12. #define    PRIMITIV_H
  13.  
  14. #define    MIN_RESOLUTION 4
  15.  
  16. #if defined(__cplusplus) || defined(c_plusplus)
  17. extern "C" {
  18. #endif
  19.  
  20. int PrimSetPolygonalPrimitives(int PolygonalPrimitive);
  21. int PrimSetSurfacePrimitiveRational(int SurfaceRational);
  22.  
  23. IPObjectStruct *PrimGenBOXObject(VectorType Pt,
  24.                  RealType WidthX,
  25.                  RealType WidthY,
  26.                  RealType WidthZ);
  27. IPObjectStruct *PrimGenGBOXObject(VectorType Pt,
  28.                   VectorType Dir1,
  29.                   VectorType Dir2,
  30.                   VectorType Dir3);
  31. IPObjectStruct *PrimGenCONEObject(VectorType Pt, VectorType Dir, RealType R);
  32. IPObjectStruct *PrimGenCONE2Object(VectorType Pt,
  33.                    VectorType Dir,
  34.                    RealType R1,
  35.                    RealType R2);
  36. IPObjectStruct *PrimGenCYLINObject(VectorType Pt, VectorType Dir, RealType R);
  37. IPObjectStruct *PrimGenSPHEREObject(VectorType Center, RealType R);
  38. IPObjectStruct *PrimGenTORUSObject(VectorType Center,
  39.                    VectorType Normal,
  40.                    RealType Rmajor,
  41.                    RealType Rminor);
  42. IPObjectStruct *PrimGenPOLYDISKObject(VectorType N, VectorType T, RealType R);
  43. IPObjectStruct *PrimGenPOLYGONObject(IPObjectStruct *PObjList, int IsPolyline);
  44. IPObjectStruct *PrimGenObjectFromPolyList(IPObjectStruct *PObjList);
  45. IPObjectStruct *PrimGenCROSSECObject(IPObjectStruct *PObj);
  46. IPObjectStruct *PrimGenSURFREVObject(IPObjectStruct *Cross);
  47. IPObjectStruct *PrimGenEXTRUDEObject(IPObjectStruct *Cross, VectorType Dir);
  48. IPObjectStruct *PrimGenRULEDObject(IPObjectStruct *Cross1,
  49.                    IPObjectStruct *Cross2);
  50.  
  51. void PrimSetResolution(int Resolution);
  52.  
  53. #if defined(__cplusplus) || defined(c_plusplus)
  54. }
  55. #endif
  56.  
  57. #endif    /* PRIMITIV_H */
  58.